<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f" %><!-- 格式话日期 -->
    <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>统计系统</title>
<link rel="stylesheet" href="<%=request.getContextPath() %>/css/index1.css" type="text/css"></link>
</head>
	<script type="text/javascript" src="<%=request.getContextPath() %>/js/My97DatePicker/WdatePicker.js"></script>

<script type="text/javascript" src="<%=request.getContextPath() %>/js/jquery-1.8.2.min.js"></script>
<script type="text/javascript">
	function search(){
		var name=$("[name='name']").val();
		location.href="list?name="+name;
	}
</script>
<body background="#eeeeee">
<div><em style="color: red">${teacher.name}</em>  老师
	选择日期<input type="text" name="date" onclick="WdatePicker()" readonly="readonly"/>
</div>
<br>
<center>
<form action="<%=request.getContextPath() %>/list" method="post">
<c:if test="${classes.size() > 0}">
		
		<font color="red">您的班级过多，请先选择</font>
		<select name="t_cid">
			<option value="0">--请选择--</option>
			<c:forEach items="${classes }" var="c">
				<option value="${c.id }">${c.name }</option>
			</c:forEach>
		</select>
		<!-- <button id="ok">确定</button> -->
	</c:if>
	<br>
搜全系:
选择班级：
<select name="cid">
	<option value="0">请选择</option>
	<c:forEach items="${classList }" var="cc">
		<option value="${cc.id }">${cc.name }</option>
	</c:forEach>
</select>
搜讲师
<input type="text" name="tname" />
搜学生

<input type="text" name="sname"/>
<input type="submit" value="搜索" onclick="search()"/>
</form>
</center>
<center>
	<c:if test="${!empty stuList}"> 
	<table>
	<tr>
		<td>编号</td>
		<td>学生姓名</td>
		<td>所在班级</td>
		<td>就业状态</td>
		<td>联系状态</td>
		<td>当日时间</td>
		<td>公司</td>
		<td>面试状态</td>
		<td>录音资料</td>
		<td>毕业前指导</td>
		<td>毕业后指导</td>
		<td>录音诊断</td>
		<td>今日是否联系</td>
		<td>面试时间</td>
		
	</tr>
	
	<c:forEach items="${stuList}" var="s">
		<tr>
			<td>${s.student.id}</td>
			<td>${s.student.name}</td>
			<td>${s.cname }</td>
			<td>
				<c:if test="${s.student.jobStatus==1 }">
					就业
				</c:if>
				<c:if test="${s.student.jobStatus==2 }">
					未就业
				</c:if>
				<c:if test="${s.student.jobStatus==3 }">
					辞职
				</c:if>
			</td>
			<td>
				<c:if test="${s.student.callStatus==1 }">
					正常
				</c:if>
				<c:if test="${s.student.callStatus==2 }">
					失联
				</c:if>
			</td>
			<td><%-- ${s.presentDate } --%>
				<f:formatDate value="${s.presentDate }" pattern="yyyy-mm-dd"/>
			</td>
			<td>${s.company }</td>
			<td>
				<c:if test="${s.msflag==1 }">
					有
				</c:if>
				<c:if test="${s.msflag==2 }">
					无
				</c:if>
			</td>
			<td>
				<c:if test="${s.soundflag==1 }">
					有
				</c:if>
				<c:if test="${s.soundflag==2 }">
					无
				</c:if>
			</td>
			<td>
				<c:if test="${s.firstguideflag==1 }">
					有
				</c:if>
				<c:if test="${s.firstguideflag==2 }">
					无
				</c:if>
			</td>
			<td>
				<c:if test="${s.laterguideflag==1 }">
					有
				</c:if>
				<c:if test="${s.laterguideflag==2 }">
					无
				</c:if>
			</td>
			<td>
				<c:if test="${s.diagnoseflag==1 }">
					以听
				</c:if>
				<c:if test="${s.diagnoseflag==2 }">
					未听
				</c:if>
			</td>
			<td>
				<c:if test="${s.relationflag==1 }">
					联络
				</c:if>
				<c:if test="${s.relationflag==2 }">
					未联络
				</c:if>
			</td>
			<td>
				${s.mstime}
			</td>
			<td>
				<a href="<%=request.getContextPath()%>/interview?id=${s.id}">添加</a>
			</td>
		</tr>
	</c:forEach>
</table>
	 </c:if> 

	</center>
</body>
</html>